#include "Background.h"

Background::Background()
	: mPosition (30.0f, 0.0f)
{
}

Background::~Background()
{
}

void Background::Load()
{
	mSprite.Load("buildingsprite.png");
	//mPosition = SVector2(0.0f, 0.0f);
}

void Background::Unload()
{
	mSprite.Unload();
}

void Background::Update(float deltaTime)
{
}

void Background::Render(const SVector2& viewOffset)
{
	SVector2 renderPosition = mPosition - viewOffset;
	mSprite.SetPosition(renderPosition);
	mSprite.Render();
}